import request from '@/utils/request'

/**
 * 
 * @param {} params 
 * @returns 
 */
export function listOrder (params) {
    return request({
        url: '/points/order/list',
        method: 'get',
        params: params
    })
}

/**
 * 
 * @param {*} params 
 * @returns 
 */
export function updateOrder (params) {
    return request({
        url: '/points/order/update',
        method: 'post',
        data: params
    })
}
/**
 * 
 * @param {id} params 
 * @returns 
 */
export function deleteOrder (params) {
    return request({
        url: '/points/order/delete',
        method: 'post',
        params: params
    })
}
/**
 * 
 * @param {*} params 
 * @returns 
 */
export function shipOrder (params) {
    return request({
        url: '/points/order/shipOrder',
        method: 'post',
        data: params
    })
}

/**
 * 
 * @param {*} params 
 * @returns 
 */
export function receiveOrder (params) {
    return request({
        url: '/points/order/receiveOrder',
        method: 'post',
        params: params
    })
}